package com.rockcent.third.controller;

import com.rockcent.common.common.JsonResult;
import com.rockcent.common.common.RestDoing;
import com.rockcent.common.controller.BaseController;
import com.rockcent.third.Routes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by hone on 17-3-7.
 */
@RestController
public class SiteApiListener extends BaseController {

    private final Logger log = LoggerFactory.getLogger(SiteApiListener.class);

    /**
     * @api {get} /monitor/telnet/info site-api 监控
     * @apiGroup  SITEAPI
     * @apiVersion 1.0.0
     * @apiHeader {String} userToken 用户token
     * @apiHeader {String} domain 请求域名
     *
     * @param request
     * @apiSuccessExample {json} Success-Response:
     * {
     *  "code": "1",
     *  "desc": "成功",
     * }
     */
    @RequestMapping(value = Routes.MONITOR_TELNET_INFO, method = RequestMethod.GET)
    public JsonResult telnet(HttpServletRequest request) {

        RestDoing doing = jsonResult -> {

        };
        return doing.go(request, log);
    }

}